-- GENERATED SPELL FOR [Spore Strider] --


function spell0_22299(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(20824,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22299', 3000, 1)
end

function Sorts_22299(pUnit, Event)
local choix_sorts_22299 = math.random(0, 0)
if choix_sorts_22299 == 0 then
pUnit:RegisterEvent('spell0_22299', 1, 1)
end
end

function mob22299_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22299', math.random(1500, 3000), 1)
end

function mob22299_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22299_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22299_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22299, 1, 'mob22299_Action')
RegisterUnitEvent(22299, 2, 'mob22299_Leave')
RegisterUnitEvent(22299, 3, 'mob22299_Kill')
RegisterUnitEvent(22299, 4, 'mob22299_Die')
